home *** CD-ROM | disk | FTP | other *** search
/ CDROM of CDROMs 1994 May / The CD-ROM of CD-ROMs - The Consumer's Guide to CD-ROMs - Walnut Creek May 1994.iso / samples / unix / part1 < prev    next >
Encoding:
Internet Message Format  |  1994-04-12  |  15.6 KB

  1. From: tmatimar@isgtec.com (Ted M A Timar)
  2. Newsgroups: comp.unix.questions,comp.unix.shell,news.answers,comp.answers
  3. Subject: Unix - Frequently Asked Questions (1/7) [Frequent posting]
  4. Supersedes: <unix-faq/faq/part1_744782414@GZA.COM>
  5.  
  6. Archive-name: unix-faq/faq/part1
  7. Version: $Id: part1,v 2.2 1993/03/18 23:06:21 tmatimar Exp $
  8.  
  9. These seven articles contain the answers to some Frequently Asked
  10. Questions often seen in comp.unix.questions and comp.unix.shell.
  11. Please don't ask these questions again, they've been answered plenty
  12. of times already - and please don't flame someone just because they may
  13. not have read this particular posting.  Thank you.
  14.  
  15. Many FAQs, including this one, are available on the archive site
  16. rtfm.mit.edu (18.172.1.27) in the directory pub/usenet/news.answers.
  17. The name under which a FAQ is archived appears in the "Archive-Name:"
  18. line at the top of the article.  This FAQ is archived as
  19. "unix-faq/faq/part[1-7]".
  20.  
  21. These articles are divided approximately as follows:
  22.  
  23.       1.*) General questions.
  24.       2.*) Relatively basic questions, likely to be asked by beginners.
  25.       3.*) Intermediate questions.
  26.       4.*) Advanced questions, likely to be asked by people who thought
  27.        they already knew all of the answers.
  28.       5.*) Questions pertaining to the various shells, and the differences.
  29.       6.*) An overview of Unix variants.
  30.       7.*) An comparison of configuration management systems (RCS, SCCS).
  31.  
  32. This article includes answers to:
  33.  
  34.       1.1)  Who helped you put this list together?
  35.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  36.               the number in parentheses mean?
  37.       1.3)  What does {some strange unix command name} stand for?
  38.       1.4)  How does the gateway between "comp.unix.questions" and the
  39.               "info-unix" mailing list work?
  40.       1.5)  What are some useful Unix or C books?
  41.       1.6)  What happened to the pronunciation list that used to be
  42.               part of this document?
  43.  
  44. If you're looking for the answer to, say, question 1.5, and want to skip
  45. everything else, you can search ahead for the regular expression "^1.5)".
  46.  
  47. While these are all legitimate questions, they seem to crop up in
  48. comp.unix.questions or comp.unix.shell on an annual basis, usually
  49. followed by plenty of replies (only some of which are correct) and then
  50. a period of griping about how the same questions keep coming up.  You
  51. may also like to read the monthly article "Answers to Frequently Asked
  52. Questions" in the newsgroup "news.announce.newusers", which will tell
  53. you what "UNIX" stands for.
  54.  
  55. With the variety of Unix systems in the world, it's hard to guarantee
  56. that these answers will work everywhere.  Read your local manual pages
  57. before trying anything suggested here.  If you have suggestions or
  58. corrections for any of these answers, please send them to to
  59. tmatimar@isgtec.com.
  60.  
  61. ----------------------------------------------------------------------
  62.  
  63. Subject: Who helped you put this list together?
  64. Date: Thu Mar 18 17:16:55 EST 1993
  65.  
  66. 1.1)  Who helped you put this list together?
  67.  
  68.       I took over the maintenance of this list.  Almost all of the work
  69.       (and the credit) for generating this compilation was done by
  70.       Steve Hayman.
  71.  
  72.       We also owe a great deal of thanks to dozens of Usenet readers who
  73.       submitted questions, answers, corrections and suggestions for this
  74.       list.  Special thanks go to Maarten Litmaath, Guy Harris and
  75.       Jonathan Kamens, who have all made many especially valuable
  76.       contributions.
  77.  
  78.       Part 5 of this document (shells) was written almost entirely by
  79.       Matthew Wicks <wicks@dcdmjw.fnal.gov>.
  80.  
  81.       Part 6 of this document (Unix flavours) was written almost entirely by
  82.       Pierre (P.) Lewis <lew@bnr.ca>.
  83.  
  84.       Where possible the author of each question and the date it was last
  85.       updated is given at the top.  Unfortunately, I only started this
  86.       practice recently, and much of the information is lost.  I was also
  87.       negligent in keeping track of who provided updates to questions.
  88.       Sorry to those who have made valuable contributions, but did not
  89.       receive the credit and recognition that they legitimately deserve.
  90.  
  91. ------------------------------
  92.  
  93. Subject: When someone refers to 'rn(1)' ...  the number in parentheses mean?
  94. Date: Thu Mar 18 17:16:55 EST 1993
  95.  
  96. 1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  97.       the number in parentheses mean?
  98.  
  99.       It looks like some sort of function call, but it isn't.  These
  100.       numbers refer to the section of the "Unix manual" where the
  101.       appropriate documentation can be found.  You could type "man 3
  102.       ctime" to look up the manual page for "ctime" in section 3 of
  103.       the manual.
  104.  
  105.       The traditional manual sections are:
  106.  
  107.     1    User-level  commands
  108.     2    System calls
  109.     3    Library functions
  110.     4    Devices and device drivers
  111.     5    File formats
  112.     6    Games
  113.     7    Various miscellaneous stuff - macro packages etc.
  114.     8    System maintenance and operation commands
  115.  
  116.       Some Unix versions use non-numeric section names.  For instance,
  117.       Xenix uses "C" for commands and "S" for functions.
  118.  
  119.       Each section has an introduction, which you can read with "man #
  120.       intro" where # is the section number.
  121.  
  122.       Sometimes the number is necessary to differentiate between a
  123.       command and a library routine or system call of the same name.
  124.       For instance, your system may have "time(1)", a manual page about
  125.       the 'time' command for timing programs, and also "time(3)", a
  126.       manual page about the 'time' subroutine for determining the
  127.       current time.  You can use "man 1 time" or "man 3 time" to
  128.       specify which "time" man page you're interested in.
  129.  
  130.       You'll often find other sections for local programs or even
  131.       subsections of the sections above - Ultrix has sections 3m, 3n,
  132.       3x and 3yp among others.
  133.  
  134. ------------------------------
  135.  
  136. Subject: What does {some strange unix command name} stand for?
  137. Date: Thu Mar 18 17:16:55 EST 1993
  138.  
  139. 1.3)  What does {some strange unix command name} stand for?
  140.  
  141.       awk = "Aho Weinberger and Kernighan"
  142.  
  143.     This language was named by its authors, Al Aho, Peter
  144.     Weinberger and Brian Kernighan.
  145.  
  146.       grep = "Global Regular Expression Print"
  147.  
  148.     grep comes from the ed command to print all lines matching a
  149.     certain pattern
  150.  
  151.             g/re/p
  152.  
  153.     where "re" is a "regular expression".
  154.  
  155.       fgrep = "Fixed GREP".
  156.  
  157.     fgrep searches for fixed strings only.  The "f" does not stand
  158.     for "fast" - in fact, "fgrep foobar *.c" is usually slower than
  159.     "egrep foobar *.c"  (Yes, this is kind of surprising. Try it.)
  160.  
  161.     Fgrep still has its uses though, and may be useful when searching
  162.     a file for a larger number of strings than egrep can handle.
  163.  
  164.       egrep = "Extended GREP"
  165.  
  166.     egrep uses fancier regular expressions than grep.  Many people
  167.     use egrep all the time, since it has some more sophisticated
  168.     internal algorithms than grep or fgrep, and is usually the
  169.     fastest of the three programs.
  170.  
  171.       cat = "CATenate"
  172.  
  173.     catenate is an obscure word meaning "to connect in a series",
  174.     which is what the "cat" command does to one or more files.  Not
  175.     to be confused with C/A/T, the Computer Aided Typesetter.
  176.  
  177.       gecos = "General Electric Comprehensive Operating System"
  178.     
  179.     When GE's large systems division was sold to Honeywell,
  180.     Honeywell dropped the "E" from "GECOS".
  181.  
  182.     Unix's password file has a "pw_gecos" field.  The name is a
  183.     real holdover from the early days.  Dennis Ritchie has reported:
  184.  
  185.         "Sometimes we sent printer output or batch jobs
  186.          to the GCOS machine.  The gcos field in the password file
  187.          was a place to stash the information for the $IDENT card.
  188.          Not elegant."
  189.  
  190.       nroff = "New ROFF"
  191.       troff = "Typesetter new ROFF"
  192.     
  193.     These are descendants of "roff", which was a re-implementation
  194.     of the Multics "runoff" program (a program that you'd use to
  195.     "run off" a good copy of a document).
  196.  
  197.       tee       = T
  198.  
  199.     From plumbing terminology for a T-shaped pipe splitter.
  200.  
  201.       bss = "Block Started by Symbol"
  202.     
  203.     Dennis Ritchie says:
  204.  
  205.         Actually the acronym (in the sense we took it up; it may
  206.         have other credible etymologies) is "Block Started by
  207.         Symbol." It was a pseudo-op in FAP (Fortran Assembly [-er?]
  208.         Program), an assembler for the IBM 704-709-7090-7094
  209.         machines.  It defined its label and set aside space for a
  210.         given number of words.  There was another pseudo-op, BES,
  211.         "Block Ended by Symbol" that did the same except that the
  212.         label was defined by the last assigned word + 1.  (On these
  213.         machines Fortran arrays were stored backwards in storage
  214.         and were 1-origin.)
  215.  
  216.         The usage is reasonably appropriate, because just as with
  217.         standard Unix loaders, the space assigned didn't have to be
  218.         punched literally into the object deck but was represented
  219.         by a count somewhere.
  220.  
  221.       biff = "BIFF"
  222.  
  223.     This command, which turns on asynchronous mail notification,
  224.     was actually named after a dog at Berkeley.
  225.  
  226.         I can confirm the origin of biff, if you're interested.
  227.         Biff was Heidi Stettner's dog, back when Heidi (and I, and
  228.         Bill Joy) were all grad students at U.C. Berkeley and the
  229.         early versions of BSD were being developed.   Biff was
  230.         popular among the residents of Evans Hall, and was known
  231.         for barking at the mailman, hence the name of the command.
  232.  
  233.     Confirmation courtesy of Eric Cooper, Carnegie Mellon University
  234.  
  235.       rc (as in ".cshrc" or "/etc/rc") = "RunCom"
  236.  
  237.     "rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
  238.  
  239.         'There was a facility that would execute a bunch of
  240.         commands stored in a file; it was called "runcom" for "run
  241.         commands", and the file began to be called "a runcom."
  242.  
  243.         "rc" in Unix is a fossil from that usage.'
  244.     
  245.     Brian Kernighan & Dennis Ritchie, as told to Vicki Brown
  246.  
  247.     "rc" is also the name of the shell from the new Plan 9
  248.     operating system.
  249.  
  250.       Perl = "Practical Extraction and Report Language"
  251.  
  252.     The Perl language is Larry Wall's highly popular
  253.     freely-available completely portable text, process, and file
  254.     manipulation tool that bridges the gap between shell and C
  255.     programming (or between doing it on the command line and
  256.     pulling your hair out).  For further information, see the
  257.     Usenet newsgroup comp.lang.perl.
  258.  
  259.       Don Libes' book "Life with Unix" contains lots more of these
  260.       tidbits.
  261.  
  262. ------------------------------
  263.  
  264. Subject: How does the gateway between "comp.unix.questions" ... work ?
  265. Date: Thu Mar 18 17:16:55 EST 1993
  266.  
  267. 1.4)  How does the gateway between "comp.unix.questions" and the
  268.       "info-unix" mailing list work?
  269.  
  270.       "info-unix" and "unix-wizards" are mailing list versions of
  271.       comp.unix.questions and comp.unix.wizards respectively.
  272.       There should be no difference in content between the
  273.       mailing list and the newsgroup.
  274.  
  275.       To get on or off either of these lists, send mail to
  276.       info-unix-request@brl.mil or unix-wizards-request@brl.mil.
  277.       Be sure to use the '-Request'.  Don't expect an immediate response.
  278.  
  279.       Here are the gory details, courtesy of the list's maintainer,
  280.       Bob Reschly.
  281.  
  282.       ==== postings to info-UNIX and UNIX-wizards lists ====
  283.  
  284.       Anything submitted to the list is posted; I do not moderate
  285.       incoming traffic -- BRL functions as a reflector.  Postings
  286.       submitted by Internet subscribers should be addressed to the list
  287.       address (info-UNIX or UNIX- wizards);  the '-request' addresses
  288.       are for correspondence with the list maintainer [me].  Postings
  289.       submitted by USENET readers should be addressed to the
  290.       appropriate news group (comp.unix.questions or
  291.       comp.unix.wizards).
  292.  
  293.       For Internet subscribers, received traffic will be of two types;
  294.       individual messages, and digests.  Traffic which comes to BRL
  295.       from the Internet and BITNET (via the BITNET-Internet gateway) is
  296.       immediately resent to all addressees on the mailing list.
  297.       Traffic originating on USENET is gathered up into digests which
  298.       are sent to all list members daily.
  299.  
  300.       BITNET traffic is much like Internet traffic.  The main
  301.       difference is that I maintain only one address for traffic
  302.       destined to all BITNET subscribers. That address points to a list
  303.       exploder which then sends copies to individual BITNET
  304.       subscribers.  This way only one copy of a given message has to
  305.       cross the BITNET-Internet gateway in either direction.
  306.  
  307.       USENET subscribers see only individual messages.  All messages
  308.       originating on the Internet side are forwarded to our USENET
  309.       machine.  They are then posted to the appropriate newsgroup.
  310.       Unfortunately, for gatewayed messages, the sender becomes
  311.       "news@brl-adm".  This is currently an unavoidable side-effect of
  312.       the software which performs the gateway function.
  313.  
  314.       As for readership, USENET has an extremely large readership - I
  315.       would guess several thousand hosts and tens of thousands of
  316.       readers.  The master list maintained here at BRL runs about two
  317.       hundred fifty entries with roughly ten percent of those being
  318.       local redistribution lists.  I don't have a good feel for the
  319.       size of the BITNET redistribution, but I would guess it is
  320.       roughly the same size and composition as the master list.
  321.       Traffic runs 150K to 400K bytes per list per week on average.
  322.  
  323. ------------------------------
  324.  
  325. Subject: What are some useful Unix or C books?
  326. Date: Thu Mar 18 17:16:55 EST 1993
  327.  
  328. 1.5)  What are some useful Unix or C books?
  329.  
  330.       Mitch Wright (mitch@cirrus.com) maintains a useful list of Unix
  331.       and C books, with descriptions and some mini-reviews.  There are
  332.       currently 167 titles on his list.
  333.  
  334.       You can obtain a copy of this list by anonymous ftp from
  335.       ftp.rahul.net (192.160.13.1), where it's "pub/mitch/YABL/yabl".
  336.       Send additions or suggestions to mitch@cirrus.com.
  337.  
  338.       Samuel Ko (kko@sfu.ca) maintains another list of Unix books.
  339.       This list contains only recommended books, and is therefore
  340.       somewhat shorter.  This list is also a classified list, with
  341.       books grouped into categories, which may be better if you are
  342.       looking for a specific type of book.
  343.  
  344.       You can obtain a copy of this list by anonymous ftp from
  345.       rtfm.mit.edu (18.172.1.27), where it's
  346.       "pub/usenet/news.answers/books/unix".  Send additions or
  347.       suggestions to kko@sfu.ca.
  348.  
  349.       If you can't use anonymous ftp, email the line "help" to
  350.       "ftpmail@decwrl.dec.com" for instructions on retrieving
  351.       things via email.
  352.  
  353. ------------------------------
  354.  
  355. Subject: What happened to the pronunciation list ... ?
  356. Date: Thu Mar 18 17:16:55 EST 1993
  357.  
  358. 1.6)  What happened to the pronunciation list that used to be part of this
  359.       document?
  360.  
  361.       From its inception in 1989, this FAQ document included a
  362.       comprehensive pronunciation list maintained by Maarten Litmaath
  363.       (thanks, Maarten!).  (Does anyone know who *created* it?)
  364.  
  365.       It has been retired, since it is not really relevant to the topic
  366.       of "Unix questions".  You can still find it as part of the
  367.       widely-distributed "Jargon" file (maintained by Eric S. Raymond,
  368.       eric@snark.thyrsus.com) which seems like a much more appropriate
  369.       forum for the topic of "How do you pronounce  /* ?"
  370.  
  371.       If you'd like a copy, you can ftp one from ftp.wg.omron.co.jp
  372.       (133.210.4.4), it's "pub/unix-faq/docs/Pronunciation-Guide".
  373.  
  374. ------------------------------
  375.  
  376. End of unix/faq Digest part 1 of 7
  377. **********************************
  378.  
  379. -- 
  380. Ted Timar - tmatimar@isgtec.com
  381.